import { PrimaryTableCol, TableRowData } from 'tdesign-vue-next';
import { ref } from 'vue';

export const INIT_DATA = { deviceName: '' };

export const list = ref([
  { label: '', value: '', key: 'deviceName', type: 'InputView', placeholder: '请输入设备名称', clearable: true },
]);

export const columns: PrimaryTableCol<TableRowData>[] = [
  { colKey: 'deviceName', title: '设备名称', align: 'center' },
  { colKey: 'enable', title: '设备启用禁用', align: 'center' },
  { colKey: 'type', title: '视频流类型', align: 'center' },
  { colKey: 'number', title: '设备序列号', align: 'center' },
  {
    colKey: 'videoUrl',
    title: '视频流地址',
    align: 'center',
  },
  { colKey: 'opt', title: '操作', fixed: 'right', align: 'center', width: 360 },
];
